package main

import (
	"fmt"
	"time"

	"golang.org/x/crypto/bcrypt"
)

func main() {
	for cost := 10; cost <= 20; cost++ {
		start := time.Now()
		pw, _ := bcrypt.GenerateFromPassword([]byte("pa55w0rd"), cost)
		fmt.Printf("%s", pw)
		fmt.Printf("cost: %d, duration: %v\n", cost, time.Since(start))
	}
}